package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@Entity
@Table(name = "shop_specifications")
public class Specifications implements Serializable {

	private static final long serialVersionUID = 4063125446976606335L;
	@Id
	@Column(name = "id_bigint", columnDefinition = "bigint(20)")
	private Long id;
	@Column(name = "name_nvarchar", columnDefinition = "varchar(255)")
	private String name;
	@Column(name = "disable_bit", columnDefinition = "tinyint(1)")
	private Integer disable;
	@Column(name = "prices_money", columnDefinition = "decimal(10,2)")
	private BigDecimal prices;
	@Column(name = "img_nvarchar", columnDefinition = "varchar(255)")
	private String img;
	@Column(name = "sp_id_bigint", columnDefinition = "bigint(20)")
	private Long spId;
	@Column(name = "sp_name_nvarchar", columnDefinition = "varchar(255)")
	private String spName;
	@Column(name = "stock_int", columnDefinition = "int(11)")
	private Integer stock;
}
